#include "ShareMem.hpp"
#include <unistd.h>

int main()
{
    // 1.申请共享内存
    ShareMem shm(CLIENT);
    char *str = (char *)shm.getStart();

    // 2.向server发送消息
    char c = 'A';
    while (c <= 'Z')
    {
        str[c - 'A'] = c;
        c++;
        str[c - 'A'] = 0;
        sleep(1);
    }

    return 0;
}